﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
using LiuYan.Service;

namespace LiuYan.Web.Areas.Admin.Controllers
{
    public class OrderController : BaseController
    {
        //
        // GET: /Admin/Order/

        public ActionResult OrderList()
        {
            return View();
        }
        public ActionResult OrderList1()
        {
            return View();
        }
        public ActionResult OrderList2()
        {
            return View();
        }
        public ActionResult OrderList3()
        {
            return View();
        }
        public ActionResult OrderList4()
        {
            return View();
        }
        public ActionResult OrderList5()
        {
            return View();
        }

        public ActionResult OrderSort()
        {
            return View();
        }
        public ActionResult FaHuo(string orderno)
        {
            ViewData["orderno"] = orderno;
            ViewData["data"] = new ExpressService().GetAllList();
            return View();
        }

        public int fh(string orderno,int wlid,string danhao)
        {
            return new OrderService().FaHuo(orderno, danhao, wlid);
        }
        /// <summary>
        /// 获取订单
        /// </summary>
        /// <param name="sid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageCount"></param>
        /// <param name="orderNo"></param>
        /// <returns></returns>
        public string GetOrder(int sid, int pageIndex, int pageCount,string orderNo)
        {
            return JsonConvert.SerializeObject(new OrderService().GetOrder1(sid, pageIndex, pageCount, orderNo));
        }
        /// <summary>
        /// 删除订单
        /// </summary>
        /// <param name="orderno"></param>
        /// <returns></returns>
        public int DelOrder(string orderno)
        {
            return new OrderService().DelOrder1(orderno);
        }
    }
}
